package com.ms.es.connection.impl;

import com.ms.es.connection.EsConnection;
import com.ms.es.connection.EsHttpClient;
import com.ms.es.sql.SqlDesc;
import com.ms.es.support.DSLConfiguration;

public abstract class EsBaseConnection implements EsConnection {

	protected EsHttpClient httpClient;

	protected DSLConfiguration dslConfiguration;

	public EsBaseConnection(EsHttpClient httpClient, DSLConfiguration dslConfiguration) {
		this.httpClient = httpClient;
		this.dslConfiguration = dslConfiguration;
	}

	@Override
	public Object execute(SqlDesc sqlDesc) {
		return doExecute(sqlDesc);
	}

	public abstract Object doExecute(SqlDesc sqlDesc);

}
